package Sub;

import java.util.Scanner;

public class Sub_J24Professor {

	public static void main(String[] args) {
		Sub_J24ProfessorService ps = new Sub_J24ProfessorSerivceImpl();
		Scanner sc = new Scanner(System.in);
		
		switch(sc.nextInt()) {
			case 1: ps.newProfessor(); break; 
			case 2: ps.readProfessor(); break; 
			case 3: ps.readOneProfessor(); break; 
			case 4: ps.modifyProfessor(); break; 
			case 5: ps.removeProfessor(); break; 
			case 0: System.exit(0); break;
			default : System.out.println("올바르지 않은  선택입니다" );
		}
	}
}





